﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.TableInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int TId=(Convert.ToInt32(strid));
					ShowInfo(TId);
				}
			}
		}
		
	private void ShowInfo(int TId)
	{
		Maticsoft.BLL.TableInfo bll=new Maticsoft.BLL.TableInfo();
		Maticsoft.Model.TableInfo model=bll.GetModel(TId);
		this.lblTId.Text=model.TId.ToString();
		this.lblTTitle.Text=model.TTitle;
		this.lblTHallId.Text=model.THallId.ToString();
		this.lblTIsFree.Text=model.TIsFree?"是":"否";
		this.lblTIsDelete.Text=model.TIsDelete?"是":"否";

	}


    }
}
